Fixes crashers with accessibility
https://bugzilla.gnome.org/show_bug.cgi?id=707659
text = pango_layout_get_text (layout);
- if (text[0] == 0)
+ if (text == NULL || text[0] == 0)
{
*start_offset = 0;
*end_offset = 0;
text = pango_layout_get_text (layout);
- if (text[0] == 0)
+ if (text == NULL || text[0] == 0)
{
*start_offset = 0;
*end_offset = 0;
text = pango_layout_get_text (layout);
- if (text[0] == 0)
+ if (text == NULL || text[0] == 0)
{
*start_offset = 0;
*end_offset = 0;